<?php 
	$memberCount = count($this->member_list);
?>
				<!-- Start: box KhachMoi -->
                <li>
                    <div class="my-box">
                        <div class="top">
                            <div class="float-left"><img class="arrow" src="<?php echo EVENT_STATIC_SERVER;?>/images/bulletCollapse.jpg" alt="collapse" id="t-my-guest" onclick="ShowHideArea('t-my-guest')"/><span>Thành viên tham gia</span></div>
                        </div>
                        <div id="my-guest" class="content">
                        <?php if($memberCount){?>
                            <div class="thongKe"> <span>Có <?php echo $memberCount;?> thành viên</span> 
                            <a href="/event/member/<?php echo $this->event->eid;?>">Xem tất cả</a>
                            <?php if($this->memberStatus['isMember']){?>
                            <a href="/event/edit/member/<?php echo $this->event->eid;?>" style="margin-right:5px;">Mời bạn bè</a>&nbsp;&nbsp;
                            <?php }?>
                                <div class="clear"></div>
                            </div>
                            <ul class="likeUl">
                            <?php 
                            	for($i=0; $i<count($this->member_list) && $i<7;$i++){
                            		$invitedUser = $this->member_list[$i];
                            		$avatar = EVENT_STATIC_SERVER."/images/nophoto.gif";
                            		if($invitedUser->avatar != ""){
                            			$avatar = EVENT_IMG_SERVER."/".$invitedUser->avatar;
                            		}
                            ?>
                                <li style="width: 65px; height: 80px;"> <a href="/home/<?php echo $invitedUser->name;?>" class="imgWrap" style="width:64px; height: 64px;"> <img src="<?php echo $avatar;?>" onload="resizeImage(this,60, 60)"/></a><a href="/home/<?php echo $invitedUser->name;?>"><?php echo $invitedUser->name;?></a></li>
                            <?php }?>
                            </ul>
                            <div class="clear"></div>
                         <?php }?>
                        </div>
                    </div>
                </li>
                <!-- End: box KhachMoi -->